package judger

import (
	"encoding/json"
	"fmt"
	"gugojudger/utils/ojchannel"
	"os/exec"
	"syscall"
)

func runAndCollectTrace(cmd *exec.Cmd, X *ojchannel.OJChannelX) {

}
func analyseSyscall(cmd *exec.Cmd, cID int, memUse int64, X *ojchannel.OJChannelX) {

}

func analyseMemory(cmd *exec.Cmd, max *int64) {

}

func gotMT(v interface{}) (mem int64, cpuTime int64) {
	var param syscall.Rusage
	timeB, _ := json.Marshal(v)
	err := json.Unmarshal(timeB, &param)
	if err != nil {
		fmt.Println(err.Error())
		return -1, -1
	}
	return 0, 0
}
